<?php
$dbms = "mysql";
$server = "localhost";
$username = "root";
$password = "";
$dbname = "account_db";
$dsn = "$dbms:host=$server;dbname=$dbname";
try{
	$pdo = new PDO ( $dsn, $username, $password );
	echo "PDO连接MySQL数据库服务器成功";
	$pdo = NULL;
} catch ( PDOException $e ) {
	echo "PDO连接数据库服务失败";
	die ();
}
?>